Skip to main content

disabledIcon

Type​

property

Summary​

Specifies an image to display in a button when the button is disabled.

Syntax​

set the disabledIcon of <button> to {<imageID> | <imageName>}

Description​

Use the disabledIcon property to change a button's appearance when it is disabled.

When the button's enabled property is set to false, the disabledIcon is displayed within the button's rectangle.

If a button's showIcon property is false, the setting of its disabledIcon property has no effect.

Examples​

set the disabledIcon of button "Boss Key" to "Innocent Spreadsheet"

Value​

NameTypeDescription

value

The disabledIcon property is the ID or name of an image to use for an icon. LiveCode looks for the specified image first in the current stack, then in other open stacks. By default, the disabledIcon property of newly created buttons is set to zero.

command: disable

function: stacks

glossary: property, current stack

keyword: image, button

object: button

property: ID, name

Compatibility and Support​

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?